#include <string>
#include <vector>
#include <iostream>
#include <map>

using std::string;
using std::cout;
using std::endl;
using std::vector;
using std::map;

string global_str;
int global_int;

double pi = 2.34;

extern const int bufSize = 1;

class Foo
{
};

class Account
{
public:
	void applyint() {amount += amount * interestRate;}
	static double rate(){return interestRate;}
	static void rate(double);

private:
	string owner;
	double amount;
	static double interestRate;
	static double initRate() {return 0;}
};

void Account::rate(double newRate)
{
	interestRate = newRate;
}

double Account::interestRate = initRate();

int main()
{
	string s1 = "Who goes with F\145rgus?\012"	;
	double d1 = 2.14e1L;
	//string s2 = "two" L"some";
	float f1 = 1024.f;

	char _ = 'a';
	//char 1_or_2 = '1';
	float Float = 3.14f;

	int month = 011, day = 07;

	int local_int;
	string local_str;

	cout<<global_str<<':'<<global_int<<endl;
	cout<<local_str<<':'<<local_int<<endl;

	vector<vector<int> > ivec;
	//vector<string> svec = ivec;

	vector<string> svec(10, "null");
	
	/*
	int i = 100, sum = 0;
	for(int i=0;i!=10;++i)
		sum +=i;
	cout<<i<<" "<<sum<<endl;
	cou<<"-----------------------------"<<endl;
	*/

	/*
	int sum=0;
	for(int i=0;i!=10;++i)
		sum+=i;
	cout<<"Sum from 0 to "<<i
			<<" is "<<sum<<endl;
	*/
	//const int i = 0;

	int cnt = 0;
	const int sz = cnt;

	int i = 42;
	const int &r = 42;
	const int &r2 = r+i;

	int ival = 1.9;
	//int &rval1 = 1.01;
	int &rval2 = ival;
	const int &rval3 = 1;

	const char *p = "haha";

	map<string, int> word_count;
	word_count["one"];
	cout<<word_count["one"]<<endl;
	
	return 0;
}
